Skip to content

[Moore Threads] Adaptation for ERNIE-21B and PaddleOCR-VL models on MUSA devices#4683

Merged
zjjlivein merged 1 commit into
PaddlePaddle:developfrom
YivYuan:musa/adaptation0618
Jun 23, 2026
Merged

[Moore Threads] Adaptation for ERNIE-21B and PaddleOCR-VL models on MUSA devices#4683
zjjlivein merged 1 commit into
PaddlePaddle:developfrom
YivYuan:musa/adaptation0618

Conversation

@YivYuan

@YivYuan YivYuan commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

PR changes

Description

  • Added configs for 21B and OCR models
  • Added certain adapations for MUSA devices in CLI and some module imports

devices

* Added configs for 21B and OCR models
* Added certain adapations for MUSA devices in CLI and some module
  imports
@fxyfxy777

Copy link
Copy Markdown
Contributor

/re-run all-failed

@zjjlivein zjjlivein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Jun 23, 2026
@PaddlePaddle PaddlePaddle unlocked this conversation Jun 23, 2026
@@ -0,0 +1,90 @@
device: musa

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try:
from paddle.incubate.fp8 import deep_gemm
except ImportError:
warnings.warn(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议直接使用formers自带的logger

try:
from paddle.incubate.fp8 import deep_gemm
except ImportError:
warnings.warn(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议使用formers自带的logger

@nepeplwu

Copy link
Copy Markdown
Collaborator

新的硬件支持需要提供安装说明的文档,并在README给出引用,参考:
https://github.com/PaddlePaddle/PaddleFormers/tree/develop#%E5%AE%89%E8%A3%85

同时在能力矩阵里多硬件支持部分说明支持的模型:https://github.com/PaddlePaddle/PaddleFormers/tree/develop#%E5%AE%89%E8%A3%85

@zjjlivein zjjlivein merged commit fe035e6 into PaddlePaddle:develop Jun 23, 2026
35 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants